<template>
	<view class="myhome">
		<view class="beijing">
			<img src="../../static/beijing.png" />
		</view>
		<view class="bjimg">
			<van-image round width="6rem" height="6rem" src="https://img.yzcdn.cn/vant/cat.jpeg" />

		</view>
	
		<view class="openphone">
			添加微信联系方式
		</view>
		
		<button @click="copyText()">点击复制联系方式</button>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				logindata: 0,
				gly: ''
			}
		},
		
		methods: {
			copyText() {
			      const textToCopy = '0'; // 指定要复制的内容
			      uni.setClipboardData({
			        data: textToCopy,
			        success: function () {
			          uni.showToast({
			            title: '复制成功',
			            icon: 'success'
			          });
			        },
			        fail: function () {
			          uni.showToast({
			            title: '复制失败',
			            icon: 'none'
			          });
			        }
			      });
			    },
			
			
			
		
			

		},
		 onShow() {
		 
		 	
		 }
		,
		onLoad() {
			
		}
		
	}
</script>

<style>
	.openphone{
		margin-top: 20vw;
		font-size: 5vw;
	}
	.beijing {
		width: 100%;
		/* border: 1px solid black; */
		position: relative;
	}

	.beijing img {
		width: 100%;
	}

	.bjimg {
		position: absolute;
		top: 168px;
		/* left:150px; */
		/* left: 170px; */
		width: 100px;
		height: 100px;
		/* border:1px solid black; */
		margin: 0 auto;
	}

	.mybutton {
		/* background-color: rgb(245,245,245); */
		/* border: 1px solid black; */
		margin-top: 10px;
	}

	.mydp {
		margin-top: 24px;
	}
</style>